<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>快速翻译助手</title>
    <link rel="stylesheet" href="styles.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
</head>
<body>
    <div class="container">
        <h2><i class="fas fa-language"></i> 快速翻译助手</h2>
        <div class="input-area">
            <textarea id="sourceText" placeholder="请输入要翻译的文本（按回车键翻译，Shift+回车换行）"></textarea>
            <div class="language-selector">
                <select id="sourceLang" title="源语言">
                    <option value="auto">自动检测</option>
                    <option value="zh">中文</option>
                    <option value="en">英文</option>
                    <option value="ja">日文</option>
                    <option value="ko">韩文</option>
                    <option value="fr">法文</option>
                    <option value="de">德文</option>
                    <option value="es">西班牙文</option>
                    <option value="ru">俄文</option>
                </select>
                <button id="switchLang" title="切换语言"><i class="fas fa-exchange-alt"></i></button>
                <select id="targetLang" title="目标语言">
                    <option value="zh">中文</option>
                    <option value="en">英文</option>
                    <option value="ja">日文</option>
                    <option value="ko">韩文</option>
                    <option value="fr">法文</option>
                    <option value="de">德文</option>
                    <option value="es">西班牙文</option>
                    <option value="ru">俄文</option>
                </select>
            </div>
        </div>
        <button id="translateBtn">
            <i class="fas fa-translate"></i> 翻译
        </button>
        <div class="output-area">
            <textarea id="translatedText" readonly placeholder="翻译结果将显示在这里"></textarea>
        </div>
    </div>
    <script src="popup.js"></script>
</body>
</html> 